// ============================================================================
//
// Copyright (C) 2006-2019 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have received a copy of the agreement
// along with this program; if not, write to Talend SA
// 9 rue Pages 92150 Suresnes, France
//
// ============================================================================
package org.talend.camel.designer.generator;

import org.talend.core.ui.properties.tab.IDynamicProperty;
import org.talend.designer.core.ui.editor.properties.controllers.AbstractElementPropertySectionController;
import org.talend.designer.core.ui.editor.properties.controllers.generator.IControllerGenerator;

/**
 * @author xpli
 *
 */
public class RouteResourceGenerator implements IControllerGenerator {

	private IDynamicProperty dp;

	/* (non-Javadoc)
	 * @see org.talend.designer.core.ui.editor.properties.controllers.generator.IControllerGenerator#generate()
	 */
	public AbstractElementPropertySectionController generate() {
		return new RouteResourceController(dp);
	}

	/* (non-Javadoc)
	 * @see org.talend.designer.core.ui.editor.properties.controllers.generator.IControllerGenerator#setDynamicProperty(org.talend.core.properties.tab.IDynamicProperty)
	 */
	public void setDynamicProperty(IDynamicProperty dp) {
		this.dp = dp;
	}

}
